package han.service;

import han.pojo.Record;
import han.pojo.countRecord;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @authou HanDianWei
 * @create 2020-10-28 15:50
 */
public interface RecordService {
    int deleteByPrimaryKey(int p_id);

    int insert(Record record);

    Record selectByPrimaryKey(int p_id);

    int updateByPrimaryKey(Record record);

    List<Record> queryRecord();

//    案件名模糊查询
    List<Record> queryRecordByName(String p_case);

    List<Record> queryRecordByClass(String p_class);
//  统计选定时间范围内的日期
    List<countRecord> countRecordByTime(String ptime1,String ptime2);
    List<countRecord> countRecordByWeek();
    List<countRecord> countRecordAll();
    List<countRecord> countRecordByClass();
}
